package so.wy.servicecenter.businessbed;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import so.wy.servicecenter.base.utils.SpringContextUtil;

@SpringBootApplication(scanBasePackages = {"so.wy.servicecenter.*"})
@MapperScan("so.wy.servicecenter.*")
@EnableTransactionManagement
public class BusinessBedApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(BusinessBedApplication.class, args);
        SpringContextUtil.setApplicationContext(context);
    }

}
